<template>
  <div class="about">
  </div>
</template>

<script setup>
import { useRoute, useRouter } from "vue-router";
import { reactive } from "@vue/reactivity";
// ----------router系列语法糖:(useRoute, useRouter)----------------------------------------

const route = useRoute();
console.log("useRoute------", route);

const router = useRouter();
console.log("useRouter------", router.options);

let tabList = reactive(router.options.routes[1].children);
console.log("当前路由列表数据------", tabList);
let routerClick = () => {
  router.push("/c");
};
</script>

<style module>
/* style语法糖--------------------:class="$custom.green"*/
.txt {
  color: blue;
  cursor: pointer;
  transition:color .5s ease;
}
.txt:hover {
  color: rgb(47, 179, 255);
}
</style>
